package com.dony.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dony.order.domain.Order;

import java.io.File;
import java.util.List;

/**
 * 订单打包Service接口
 *
 * @author dony
 * @date 2023-09-07
 */
public interface ILogisticsService extends IService<Order> {


    /**
     * 启动物流
     *
     * @param shopId
     * @param orderSn
     * @return
     */
    Boolean shipOrder(Long shopId, String orderSn);


    /**
     * 获取运单号
     *
     * @param shopId
     * @param sn
     * @return
     */
    String getTrackingNumber(Long shopId, String sn);


    Boolean createShippingDocument(List<String> orderSns);

    Boolean tryGetShippingDocumentResult(List<String> snList, int maxAttempts);

    Boolean getShippingDocumentParameter(Long shopId, List<String> orderSns);

    Boolean getShippingDocumentResult(List<String> orderSns);

    byte[] downloadShippingDocument(Long shopId, String orderSn);

}
